import lib.problem as problem
import lib.primes as primes

class Problem007(problem.Problem):
	def __init__(self):
		problem.Problem.__init__(self, 7)
		
	def solve(self):
		counter = 0
		i = 104729
		result = 0
		while(counter <= 10001):	
			if primes.isPrime(i):
				counter += 1
				result = i
			i += 1
			return result
	
if __name__ == "__main__":
	print(Problem007().solveAndTime())